package com.sunnyebuy.merchant.po;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the shopping_cart database table.
 */
@Entity
@Table(name = "shopping_cart")
public class ShoppingCart implements Serializable {

	private static final long serialVersionUID = -3693740335402580926L;
	private String shoppingCartId;
	private String customerId;
	private Timestamp dateCreated;
	private Date lastModifyDate;
	private int merchantProductNum;
	private String merchantProductSku;

	public ShoppingCart() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "shopping_cart_id")
	public String getShoppingCartId() {
		return this.shoppingCartId;
	}

	public void setShoppingCartId(String shoppingCartId) {
		this.shoppingCartId = shoppingCartId;
	}

	@Column(name = "customer_id")
	public String getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	@Column(name = "date_created")
	public Timestamp getDateCreated() {
		return this.dateCreated;
	}

	public void setDateCreated(Timestamp dateCreated) {
		this.dateCreated = dateCreated;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "last_modify_date")
	public Date getLastModifyDate() {
		return this.lastModifyDate;
	}

	public void setLastModifyDate(Date lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}

	@Column(name = "merchant_product_num")
	public int getMerchantProductNum() {
		return this.merchantProductNum;
	}

	public void setMerchantProductNum(int merchantProductNum) {
		this.merchantProductNum = merchantProductNum;
	}

	@Column(name = "merchant_product_sku")
	public String getMerchantProductSku() {
		return this.merchantProductSku;
	}

	public void setMerchantProductSku(String merchantProductSku) {
		this.merchantProductSku = merchantProductSku;
	}

}